-- GENERATED SPELL FOR [Horde Scout] --


function spell0_11680(pUnit, Event) --@Scorpid Sting,n/a--
pUnit:FullCastSpellOnTarget(18545,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11680', 20271, 1)
end

function spell1_11680(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11680', 664, 1)
end

function Sorts_11680(pUnit, Event)
local choix_sorts_11680 = math.random(0, 1)
if choix_sorts_11680 == 0 then
pUnit:RegisterEvent('spell0_11680', 1, 1)
end
if choix_sorts_11680 == 1 then
pUnit:RegisterEvent('spell1_11680', 1, 1)
end
end

function mob11680_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11680', math.random(1500, 3000), 1)
end

function mob11680_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11680_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11680_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11680, 1, 'mob11680_Action')
RegisterUnitEvent(11680, 2, 'mob11680_Leave')
RegisterUnitEvent(11680, 3, 'mob11680_Kill')
RegisterUnitEvent(11680, 4, 'mob11680_Die')
